package user

import (
	"github.com/gin-gonic/gin"
	"go.uber.org/zap"
	"new_club_recruitment/global"
	"new_club_recruitment/model/common/response"
)

type ApiChannel struct {
}

//GetChannel 获取所有通道信息
func (a ApiChannel) GetChannel(c *gin.Context) {
	//处理业务
	data, err := ChannelService.GetChannelInfoList()
	if err != nil {
		global.GVA_LOG.Error("获取失败!", zap.Error(err))
		response.FailWithMessage("获取失败", c)
	} else {
		response.OkWithDetailed(data, "获取成功", c)
	}
}
